package com.zheng.作业05;

public class TestBook {
    public static void main(String[] args) {
        Book b1=new Book("001","wwww",199);
        Book b2=new Book("002","ssss",299);
        Book b3=new Book("003","aaaa",99);
        Book[] books={b1,b2,b3};
        Book max=books[0];
        for (int i = 0; i < books.length; i++) {
            if (max.getMoney()<books[i].getMoney()){
                max=books[i];
            }
        }
        System.out.println(max);

    }
}
